# name : add col of mean & std without by group, via macro var
# key : add.meanstd.via.macrovar
# contributor: Shuguang Sun
# --
proc means data=${1:dtin};
var ${2:vars};
output out=${3:dmean} mean= std= /autoname;
run;

data _null_;
set $3;
call symputx("mean", m);
call symputx("std", s);
run;

data ${4:dout};
set $1;
mean = &mean.;
run;